home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / PROGEDIT / 0747.ZIP / BOOTSAIL.BAT < prev    next >
DOS Batch File  |  1987-05-12  |  2KB  |  57 lines

  1. echo off
  2. rem   -------------------------
  3. rem   RAM disk bootstrap module
  4. rem   SAIL Version 1.20
  5. rem   -------------------------
  6. rem
  7. rem   This batch file copies SAIL.EXE into a RAM disk.  The advantage
  8. rem   of having SAIL.EXE on a RAM disk is that the loading speed is 
  9. rem   greatly increased in subsequent editing sessions.
  10. rem   
  11. rem   For this BATCH file to work, this file (itself) must be named 
  12. rem   SAIL.BAT, and it must exist in the \bat directory of drive C:.
  13. rem
  14. rem   In addition, the RAM disk must be defined as drive D:.
  15. rem   The SAIL.EXE file must be in the \usr directory of drive C:.
  16. rem   
  17. rem   Your PATH must also be similar to the following:
  18. rem
  19. rem       PATH=D:\;C:\BAT;C:\USR
  20. rem
  21. rem   ---------
  22. rem   Algorithm
  23. rem   ---------
  24. rem
  25. rem   If SAIL.EXE (or SAIL.BAT) is not found in the current directory, 
  26. rem   DOS will look for SAIL on drive d: (the RAM disk).  Not finding 
  27. rem   it there, DOS looks for SAIL in the \bat directory of drive c:, 
  28. rem   where it finds (and executes) this BATCH program.
  29. rem
  30. rem   Upon execution, this batch file copies SAIL.EXE from the \usr 
  31. rem   directory of drive c: to the RAM disk, then calls SAIL.
  32. rem
  33. rem   Editing then continues as if SAIL.EXE had been called directly.
  34. rem 
  35. rem   However, the second time SAIL is called, DOS will find SAIL on 
  36. rem   the RAM disk, and, not having to load SAIL again from a slow disk,
  37. rem   jumps directly into SAIL.
  38. rem
  39. rem   Note that all statements in this file beginning with REM are
  40. rem   ignored by DOS, and thus are not needed.
  41. rem
  42. rem
  43. rem   -----------------------------------------------------------------
  44. rem   Check if SAIL.EXE is already on the RAM disk.
  45. if exist d:sail.exe goto skip
  46. rem
  47. rem   -----------------------------------------------------------------
  48. rem   Copy SAIL.EXE from the \usr directory of drive c: to the RAM disk
  49. rem   (drive d:).
  50. copy c:\usr\sail.exe d:sail.exe >nul
  51. rem 
  52. rem   -----------------------------------------------------------------
  53. rem   Execute SAIL from the RAM disk.
  54. rem
  55. :skip
  56. d:sail %1 %2 %3 %4 %5 %6 %7 %8 %9
  57.